package set.学生成绩案例;
/*案例需求
        用TreeSet集合存储多个学生信息(姓名，语文成绩，数学成绩)，
        并遍历该集合 要求：按照总分从高到低出现*/
public class Student {
    private String name;
    private int chanise;
    private int math;

    public Student() {
    }

    public Student(String name, int chanise, int math) {
        this.name = name;
        this.chanise = chanise;
        this.math = math;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", chanise=" + chanise +
                ", math=" + math +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChanise() {
        return chanise;
    }

    public void setChanise(int chanise) {
        this.chanise = chanise;
    }

    public int getMath() {
        return math;
    }

    public void setMath(int math) {
        this.math = math;
    }
}
